<?php 

require( dirname(__FILE__) . '/lib/db.php' ); 


switch($_GET['action']){
	case "getinfo":
		getinfo();
	break;
	
}



function getinfo(){
	
	global $mongo;

	$sql = "SELECT * from user where uid = 1 LIMIT 1";
	$res = current(db_exec_query($sql));
		
	
	die(json_encode($res));
}
